package com.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;
@Data
public class PageReponse<T> {
   private int size;
   private int page;
   private int totalSize;
   private int totalPage;
   private List<T> list;
   public PageReponse(int page,int size,int totalPage,int totalSize,List<T> list){
       this.size = size;
       this.page = page;
       this.totalPage = totalPage;
       this.totalSize = totalSize;
       this.list = list;
   }
}
